import request from '@/utils/request/index.js'
export default {
	
	/**需求动态列表
	 * @param {Object} page
	 * @param {Object} limit
	 * @param {Object} tagList
	 * @param {Object} newsId
	 */
	getNewsList(page,limit,tagList,newsId){
		return request.request({
			url: '/h5/nocnews/likeNewlist',
			method : 'post',
			data:{
				page:page,
				limit:limit,
				tagIds: tagList,
				newsId: newsId,
			}
		})
	},
	/**发送评论
	 * @param {Object} replyData
	 */
	replyVideoCommnet(replyData){
		return request.request({
			url: '/h5/nocreply/replyVideoComment',
			method : 'post',
			data:replyData,
		})
	},
	likeNews(userId,type,businessId){
		return request.request({
			url:'/h5/nocyxcollect/save',
			method:'post',
			data:{
				userId:userId,
				type:type,
				businessId:businessId,
			}
		})
	},
	/**取消点赞、点踩、收藏视频
	 * @param {Object} likeId
	 */
	cancelCollect(likeId){
		return request.request({
			url: '/h5/nocyxcollect/cancelCollection',
			method : 'post',
			data:{
				collectionId:likeId,
			}
		})
	},
	/**保存浏览
	 * @param {Object} userId
	 * @param {Object} videoId
	 */
	browseHistory(userId,newsId){
		return request.request({
			url: '/h5/nocyxbrowse/save',
			method : 'put',
			data:{
				userId:userId,
				type:9,
				businessId:newsId,
			}
		})
	},
	/**获取咨询详情
	 * @param {Object} id
	 */
	getNewsInfo(id){
	    return request.request({
			url:'/h5/nocnews/newsInfo/' + id,
			method: 'get',
			
		})
	},

	
}
